Automated Photo Background Replacement And Mask Refinement Using Opencv